<script setup>
import sliderMenus from "@/components/sliderMenus.vue";
import HeadersView from "@/components/HeadersView.vue";
import { RouterView } from "vue-router";
</script>

<template>
  <el-container>
    <!-- 顶部导航 -->
    <el-header class="headers">
      <headers-view></headers-view>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <!-- 导航栏 -->
        <slider-menus></slider-menus>
      </el-aside>
      <el-main style="height: calc(100vh - 120px); overflow: auto;">
        <!-- 可视区 -->
        <RouterView />
      </el-main>
    </el-container>
  </el-container>
</template>

<style scoped>
.headers {
  padding: 0 !important;
}
</style>

